/**********************************************************************************************************************
 * @file    nmea_txt.c
 * @author  Queclink Jason.huang
 * @date    2019-01-02
 * @brief   NMEA-TXT frame source.
 *
 * Copyright (C) 2018 Queclink Wireless Solutions (ShenZhen) Co., Ltd. All Rights Reserved.
 *
 * @attention
 *
 * @usage
 *
 *********************************************************************************************************************/

/* includes ---------------------------------------------------------------------------------------------------------*/
#include <stdlib.h>
#include <string.h>
#include "nmea.h"

void nmea_txt_parse(int argc, char *argv[])
{
	nmea_protocol_parse_t *nmea_ptr = get_nmea_manage_context();
	gnss_task_manage_t * gnss_manage = get_gnss_manage();

	if (NULL == nmea_ptr)
		return;

    nmea_ptr->recv_nmea_msg |= TXT_MASK;
	if(!gnss_manage->gnss_info.is_uart_rx_ok){
        gnss_manage->gnss_info.is_uart_rx_ok = true;
	}
}

